import request from '@/utils/request'
export function getAllApply() {
  return request({
    url: '/creditApply/all',
    method: 'get'
  })
}

export function updateApply(id, status) {
  return request({
    url: '/creditApply/id',
    method: 'post',
    data: {
      id: id,
      status: status
    }
  })
}

export function conditionSearch(search) {
  return request({
    url: '/creditApply/mohu/condition/search',
    method: 'post',
    data: {
      bankName: search.bankName,
      phone: search.phone,
      result: search.result,
      userIdcard: search.idCard,
      userName: search.username
    }
  })
}

export function mohuSearch(str) {
  return request({
    url: '/creditApply/mohu/search',
    method: 'post',
    data: {
      str: str
    }
  })
}
